from pyecharts import options as opts
from pyecharts.charts import Liquid

#数据准备
completed_percentage = 65
auxiliary_percentage = 100

#绘制水球图
liquid = (
    Liquid()
    .add("完成率", [completed_percentage / 100])
    .set_global_opts(title_opts=opts.TitleOpts(title="完成率水球图"))
)

#输出图表
#iquid.render("D:/python charm/01/可视化/第二章/图片/水球图.html")